import { request } from "umi";
import { BasePageParams } from "./api";


export const getUserList = (params:BasePageParams ={page:1,pageSize:10}) =>request('/api/user',{
    params
})


export const upDateUser = (params) =>
  request('/api/user/update', {
    method: 'POST',
    data: params,
  });